package com.tvunetworks.center.user.service;

import com.tvunetworks.center.user.model.vo.UserIdWithEmail;

import java.util.List;
/**
 * @author Etan Yang
 * @data: 2021/6/4 19:05
 * @program: tvucc-aggregator
 * @description:
 */
public interface UserSFAccountRelationService {

    /**
     * 和SFAccount没有绑定关系的User
     * @param accountId accountId
     * @param email email
     * @return List
     */
    List<UserIdWithEmail> listUnbindSFAccountUser(String accountId, String email);

    /**
     * 和SFAccount有绑定关系的User
     * @param accountId accountId
     * @param email email
     * @return List
     */
    List<UserIdWithEmail> listBindedSFAccountUser(String accountId, String email);

    /**
     * 添加移除SFAccount和User的绑定关系
     * @param accountId accountId
     * @param addUserIds addUserIds
     * @param removeUserIds removeUserIds
     * @return int
     */
    int correlateSFAccountUserRelation(String accountId, String addUserIds, String removeUserIds);
}
